﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="vizsgaKezelo.aspx.cs" Inherits="NEMProjectWebApp.Pages.Oktato.vizsgaKezelo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <center>
        <table>
            <tr>
                <td class="Righty">
                    <asp:Label ID="Label1" runat="server" Text="Tárgyak:"></asp:Label>
                </td>
                <td class="Lefty">
                    <asp:DropDownList ID="TargyDropDownList" runat="server" Height="21px" 
                        Width="257px" DataSourceID="SqlDataSource1"
                        DataTextField="TargyNeve" DataValueField="T_ID" AutoPostBack="True">
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:masterConnectionString %>"
                        SelectCommand="SELECT [T_ID], [TargyNeve] FROM [Targy] ORDER BY [TargyNeve]">
                    </asp:SqlDataSource>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label2" runat="server" Text="Vizsgasorok:"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="Center" colspan="2">
                    <asp:ListBox ID="VizsgasorokListBox" runat="server" Style="text-align: center" Width="400px"
                        Height="152px" AutoPostBack="True" DataSourceID="SqlDataSource" DataTextField="VizsgasorNeve" DataValueField="Vizsgasor_ID"></asp:ListBox>
                        <asp:SqlDataSource ID="SqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:masterConnectionString %>"
                            SelectCommand="SELECT VizsgasorNeve, Vizsgasor_ID FROM VizsgaSor WHERE (Targy_ID = @Targy_ID) ORDER BY VizsgasorNeve">
                            <SelectParameters>
                                            <asp:ControlParameter ControlID="TargyDropDownList" Name="Targy_ID" PropertyName="SelectedValue"
                                                Type="Int32" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                    <br /><br />
                    <asp:Label ID="Label3" runat="server" Text="Vizsga időpontja: "></asp:Label>
                    <asp:TextBox ID="IdoTextBox" runat="server"></asp:TextBox><br /><br />
                    <asp:Label ID="Label4" runat="server" Text="Vizsga helyszíne: "></asp:Label>
                    <asp:TextBox ID="HelyszinTextBox" runat="server"></asp:TextBox><br /><br />
                        <asp:Button ID="UjVizsgaBtn" runat="server" Text="Új vizsga alkalom kiírása" Width="253px"
                                    Height="21px" OnClick="UjVizsgaBtn_Click" />
                </td>
            </tr>
        </table>
    </center>
</asp:Content>
